From 815cd0ed687f581f8693ad0c24f14377c0bdeb74 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 5 Dec 2017 15:44:00 +0100 Subject: [PATCH] gdk: Include gio.h in gdktypes.h It's where we include all our external dependencies. This way, we don't have to include it in all headers again and again. --- gdk/gdkapplaunchcontext.h | 1 - gdk/gdkapplaunchcontextprivate.h | 1 - gdk/gdkcontentdeserializer.h | 1 - gdk/gdkcontentprovider.h | 1 - gdk/gdkcontentserializer.h | 1 - gdk/gdkinternals.h | 1 - gdk/gdktypes.h | 3 ++- 7 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gdk/gdkapplaunchcontext.h b/gdk/gdkapplaunchcontext.h index 9c9d739bba..a99ebefbb6 100644 --- a/gdk/gdkapplaunchcontext.h +++ b/gdk/gdkapplaunchcontext.h @@ -25,7 +25,6 @@ #error "Only can be included directly." #endif -#include #include #include diff --git a/gdk/gdkapplaunchcontextprivate.h b/gdk/gdkapplaunchcontextprivate.h index bfb392598a..9a2bb7199b 100644 --- a/gdk/gdkapplaunchcontextprivate.h +++ b/gdk/gdkapplaunchcontextprivate.h @@ -18,7 +18,6 @@ #ifndef __GDK_APP_LAUNCH_CONTEXT_PRIVATE_H__ #define __GDK_APP_LAUNCH_CONTEXT_PRIVATE_H__ -#include #include "gdkapplaunchcontext.h" #include "gdktypes.h" diff --git a/gdk/gdkcontentdeserializer.h b/gdk/gdkcontentdeserializer.h index 671d5409c9..b08d4983a3 100644 --- a/gdk/gdkcontentdeserializer.h +++ b/gdk/gdkcontentdeserializer.h @@ -25,7 +25,6 @@ #include #include -#include G_BEGIN_DECLS diff --git a/gdk/gdkcontentprovider.h b/gdk/gdkcontentprovider.h index 1ce1962397..b33f266bfd 100644 --- a/gdk/gdkcontentprovider.h +++ b/gdk/gdkcontentprovider.h @@ -25,7 +25,6 @@ #include #include -#include G_BEGIN_DECLS diff --git a/gdk/gdkcontentserializer.h b/gdk/gdkcontentserializer.h index 428ddadafa..8b6dcf78ea 100644 --- a/gdk/gdkcontentserializer.h +++ b/gdk/gdkcontentserializer.h @@ -25,7 +25,6 @@ #include #include -#include G_BEGIN_DECLS diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 85d51a0c4b..097b02c08f 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -27,7 +27,6 @@ #ifndef __GDK_INTERNALS_H__ #define __GDK_INTERNALS_H__ -#include #include #include "gdkwindowimpl.h" #include "gdkdisplay.h" diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h index c362634037..533bdface7 100644 --- a/gdk/gdktypes.h +++ b/gdk/gdktypes.h @@ -32,9 +32,10 @@ /* GDK uses "glib". (And so does GTK). */ #include -#include #include +#include #include +#include /* The system specific file gdkconfig.h contains such configuration * settings that are needed not only when compiling GDK (or GTK) -- 2.30.2